package com.lizhenhua.orderclose;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @EnableDiscoveryClient和@EnableEurekaClient共同点就是：都是能够让注册中心能够发现，扫描到该服务。
 * @EnableEurekaClient只适用于Eureka作为注册；@EnableDiscoveryClient 可以是其他注册中心
 */
@EnableDiscoveryClient
@EnableEurekaServer
@EnableFeignClients
@EnableHystrix
@SpringBootApplication

public class OrderCloseApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderCloseApplication.class, args);
    }

}
